//炫彩LED
int redPin = 9;
int greenPin = 10;
int bluePin = 11;
int time = 1000;
int increament = 5;
void setup() {
  // put your setup code here, to run once:
  pinMode(redPin,OUTPUT);
  pinMode(greenPin,OUTPUT);
  pinMode(bluePin,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
colorRGB(0,255,255);
delay(2000);
colorRGB(0,128,255);
delay(2000);
colorRGB(0,0,255);
delay(2000);
colorRGB(255,0,255);
delay(2000);
colorRGB(255,0,0);
delay(2000);
colorRGB(255,255,0);
delay(2000);
colorRGB(128,255,0);
delay(2000);

}
void colorRGB(int red,int green,int blue){
    analogWrite(redPin,red);
    analogWrite(greenPin,green);
    analogWrite(bluePin,blue);
}
  
  

